#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import base64
import random
import time
from io import BytesIO
import cv2
from PIL import Image
from selenium.webdriver import ActionChains
from common.readelement import Element
from page_object.webpage import WebPage

deliveryparttimejob = Element('jzsz/personal/delivery_parttimejob')

class PersonalDeliveryParttimeJobpage(WebPage):
    def open_parttimelist(self):
        """打开兼职列表"""
        self.is_click(deliveryparttimejob['找兼职'])

    def parttimenewpublish(self):
        """最新发布"""
        self.is_click((deliveryparttimejob['兼职最新发布']))

    def deliveryparttimejob(self):
        """投递简历"""
        self.is_click((deliveryparttimejob['报名']))

    def applyparttimejob(self):
        """投递简历"""
        self.is_click((deliveryparttimejob['确认']))

    def deliveryparttimejob_result(self):
        """验证登录"""
        return self.is_exists(deliveryparttimejob['一天内不能重复申请'])